package com.justyh.ssm.service.impl;

import com.justyh.ssm.dao.PlaceDao;
import com.justyh.ssm.model.Place;
import com.justyh.ssm.service.PlaceService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by yh on 2016/9/17.
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class PlaceServiceImpl implements PlaceService{
    @Resource
    private PlaceDao placeDao;
    public void insertPlace(Place place) {
         placeDao.insert(place);
    }
}
